<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreatePartnerNewsData extends Migrator
{
    public function up()
    {
        $faker = Faker\Factory::create('zh_CN');

        $data = [
            'id' => 1,
            'content' => $faker->text,
            'create_time' => time(),
        ];
        Db::name('partner_news')->insert($data);
    }
    public function down()
    {
        Db::name('partner_news')->where('id',1)->delete();
    }
}
